//
//  EFShoppingCartItem.h
//  EnjogFood
//
//  Created by 张文瀚 on 2017/5/1.
//  Copyright © 2017年 wf. All rights reserved.
//

#import "ICTableViewItem.h"

@class EFSepecialItem;
@interface EFShoppingCartItem : ICTableViewItem
@property(nonatomic, assign)BOOL invalid;
@property(nonatomic, assign)BOOL invalidFirst;

@property(nonatomic, copy)NSString *productName;
@property(nonatomic, assign)NSString *id;
@property(nonatomic, copy)NSString *price;
@property(nonatomic, copy)NSString *salePrice;
@property(nonatomic, copy)NSString *img;
@property(nonatomic, copy)NSNumber *qty;
@property(nonatomic, assign)long long reasonCode;
@property(nonatomic, copy)NSString *reasonMessage;
@property(nonatomic,assign)Boolean selected;
@property (strong, nonatomic) NSNumber *type;

+(EFShoppingCartItem *)castFromProductItem:(EFSepecialItem *)pItem;

-(EFSepecialItem *)castToSpecialItem;
@end


//"productName": "德国爱胜清凉口味糖（硬质糖果）150g/盒",
//"id": 1391,
//"price": "20.8",
//"salePrice": "16.9",
//"img": "http://images.qcang.cn/ankang/1/lb1.jpg",
//"qty": 20,
//"reasonCode": 1,
//"reasonMessage": "库存不足
